/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xiongda.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 用户Entity
 * @author 缪琼
 * @version 2017-11-29
 */
public class XUser extends DataEntity<XUser> {
	
	private static final long serialVersionUID = 1L;
	private String userName;		// 用户名
	private String password;		// 密码
	private Integer role;		// 等级：0.管理员1.会员
	private String realName;		// 真实姓名
	private String idcard;		// 身份证号码
	private String nickName;		// 昵称
	private String headPicture;		// 头像
	private Integer gender;		// 性别：0.男1.女
	private Integer age;		// 年龄
	private Date birthday;		// 生日
	private String qq;		// QQ
	private String email;		// 电子邮箱
	private String phone;		// 电话
	private String address;		// 地址
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	private Date lastLoginTime;		// 最后登录时间
	private Integer activated;		// 是否激活：0.未激活1.已激活
	private Integer locked;		// 是否冻结：0.冻结1.未冻结
	private String activatedCode;		// 激活码
	
	public XUser() {
		super();
	}

	public XUser(String id){
		super(id);
	}

	@ExcelField(title="用户名", align=2, sort=1)
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@ExcelField(title="密码", align=2, sort=2)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@ExcelField(title="等级：0.管理员1.会员", dictType="", align=2, sort=3)
	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}
	
	@ExcelField(title="真实姓名", align=2, sort=4)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	
	@ExcelField(title="身份证号码", align=2, sort=5)
	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	
	@ExcelField(title="昵称", align=2, sort=6)
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
	@ExcelField(title="头像", align=2, sort=7)
	public String getHeadPicture() {
		return headPicture;
	}

	public void setHeadPicture(String headPicture) {
		this.headPicture = headPicture;
	}
	
	@ExcelField(title="性别：0.男1.女", dictType="", align=2, sort=8)
	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}
	
	@ExcelField(title="年龄", align=2, sort=9)
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="生日", align=2, sort=10)
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	@ExcelField(title="QQ", align=2, sort=11)
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}
	
	@ExcelField(title="电子邮箱", align=2, sort=12)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@ExcelField(title="电话", align=2, sort=13)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@ExcelField(title="地址", align=2, sort=14)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="创建时间", align=2, sort=15)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="更新时间", align=2, sort=16)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="最后登录时间", align=2, sort=17)
	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	
	@ExcelField(title="是否激活：0.未激活1.已激活", dictType="", align=2, sort=18)
	public Integer getActivated() {
		return activated;
	}

	public void setActivated(Integer activated) {
		this.activated = activated;
	}
	
	@ExcelField(title="是否冻结：0.冻结1.未冻结", dictType="", align=2, sort=19)
	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}
	
	@ExcelField(title="激活码", align=2, sort=21)
	public String getActivatedCode() {
		return activatedCode;
	}

	public void setActivatedCode(String activatedCode) {
		this.activatedCode = activatedCode;
	}
	
}